<template>
	<view class="content">
		<view class="address-box flexWrap" @tap="goPage('/pages/shop/addressList')">
			<view class="address-left flexWrapNo">
				<image src="../../static/shop/address-icon.png" class="address-icon"></image>
				<view class="address-info">
					<view class="address-name">貘鱼台球 理想中心</view>
					<view class="address-details">四川省成都市武侯区天益街理想中心4栋403室</view>
					<view class="user-info">史豪杰 138****1781</view>
				</view>
			</view>
			<text class="icon-more"></text>
		</view>
		<view class="shop-box">
			<view class="date">2017-06-24</view>
			<view class="shop-cont flexWrapNo">
				<image src="https://static.mo-yu.vip/uploads/20230710/6503c13d70f87c00601fa6eeb42034f2.jpeg" class="shop-img"></image>
				<view class="shop-info-box flexWarpColumn">
					<view class="info-box">
						<view>貘鱼定制 - 黑鲨大头杆</view>
						<view class="specs-box">当日到店 , x2</view>
					</view>
					<view class="price">¥ 45.00</view>
				</view>
			</view>
			<view class="total-box">
				共2件 总额 <text class="price">¥ 45.00</text>
			</view>
		</view>
		<view class="order-box">
			<view class="order-info flexWrap">
				<view class="info-name">商品金额</view>
				<view>¥ 45.00</view>
			</view>
			<view class="order-info flexWrap">
				<view class="info-name">运费</view>
				<view>¥ 20.00</view>
			</view>
			<view class="order-info flexWrap">
				<view class="info-name">优惠券</view>
				<view>-¥5.00</view>
			</view>
			<view class="total-box">
				总额 <text class="price">¥ 45.00</text>
			</view>
		</view>
		<view class="bottom-box flexWrap">
			<view class="btn" @tap="backPage(1)">返回</view>
			<view class="define-btn" @tap="orderSubmit()">立即支付</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				goodsId:"",
				address_id:"",
				user_coupon_id:"",
				memo:"",
				addressInfo:{}
			};
		},
		onLoad() {
			
		},
		methods:{
			orderSubmit(){
				this.$request.get(this.$api.placeOrderSubmit, {
					ids:this.goodsId,
					address_id:this.address_id,
					user_coupon_id:this.user_coupon_id,
					memo:this.memo
				}, {
					token:true
				}).then(res => {
					if (res.code==1) {
						let {data}=res
						this.goodsInfo=data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.content{
		padding: 44upx 36upx;
	}
	.address-box{
		.address-left{
			align-items: start;
			.address-icon{
				width: 34upx;
				height: 40upx;
				flex: none;
			}
			.address-info{
				margin-left: 26upx;
				.address-name{
					font-size: 32rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					color: #FFFFFF;
				}
				.address-details{
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					color:#8584A0;
					margin: 12upx 0;
				}
				.user-info{
					font-size: 24rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					color:#8584A0;
				}
			}
		}
		.icon-more{
			border-color: #FFFFFF;
		}
	}
	.shop-box{
		height: 480rpx;
		background: #1D1C5C;
		border-radius: 16rpx;
		margin-top: 36upx;
		.date{
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
			padding: 32upx 28upx;
		}
		.shop-cont{
			padding: 32upx 28upx;
			border-top: 1rpx solid #36355E;
			border-bottom: 1rpx solid #36355E;
			.shop-img{
				width: 224rpx;
				height: 224rpx;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
			}
			.shop-info-box{
				margin-left: 28upx;
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				color:#FFFFFF;
				height: 224rpx;
				justify-content: space-between;
				.info-box{
					.specs-box{
						color: #8786A8;
						margin-top: 12upx;
					}
				}
			}
		}
		.total-box{
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color:#8786A8;
			line-height: 100upx;
			text-align: right;
			padding: 0 28upx;
			.price{
				color: #FFFFFF;
				margin-left: 24upx;
			}
		}
	}
	.order-box{
		background: #1D1C5C;
		border-radius: 16rpx;
		margin-top: 20upx;
		padding: 32upx 0;
		.order-info{
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
			padding: 0 28upx;
			margin-bottom: 32upx;
			.info-name{
				color: #8988AA;
			}
		}
		.total-box{
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			color:#8786A8;
			text-align: right;
			padding: 0 28upx;
			padding-top: 32upx;
			border-top: 1rpx solid #36355E;
			.price{
				font-size: 36rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				color: #26BCFD;
				margin-left: 24upx;
			}
		}
	}
	.bottom-box{
		height: 120rpx;
		background: #1D1C5C;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		margin: auto;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		padding: 0 66upx;
		.btn{
			font-size: 32rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			width: 282rpx;
			height: 80rpx;
			line-height: 80rpx;
			border-radius: 16rpx;
			border: 2rpx solid #26BCFD;
			text-align: center;
		}
		.define-btn{
			font-size: 32rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 80rpx;
			width: 282rpx;
			height: 80rpx;
			background: #26BCFD;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			text-align: center;
		}
	}
</style>
